# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=edward
pkgver=1.0.1
pkgrel=1
pkgdesc="Implementation of the ed text editor in Scheme"
url="https://github.com/nmeum/edward"
arch="all"
license="GPL-3.0-or-later"
makedepends="chicken"
checkdepends="ed"
subpackages="$pkgname-doc"
source="https://github.com/nmeum/edward/releases/download/$pkgver/edward-$pkgver.tar.gz
	0001-editor-fix-current-address-when-moving-a-single-line.patch
	0002-editor-Fix-discarding-of-addrs-for-cmds-expecting-a-.patch"

build() {
	make
}

check() {
	make check
}

package() {
	make PREFIX=/usr DESTDIR=$pkgdir install
}

sha512sums="
caa9a6dfad20f973d1fdc9615c1cad508d646877ca1a627d36365497ce750a1478f94fc0fb287d0840657a9ec048dba23b83d8f12073016858de9a17de3cd496  edward-1.0.1.tar.gz
56274b808b63febb4cb2a247e0631612709da48f0e5b5d19fba73535e9dff1ac2492badc36ef9dd2155299afead98d7f65b21958fce82c5fa02d6a2c1abf498f  0001-editor-fix-current-address-when-moving-a-single-line.patch
4868b138acfe8f0ae75f13e7308c5edacbe3fb79636698c7545ad8454bf80ee9a4eeb7a1c7dfe97ac2bf730277d3b03f35d5f509d01ee607cd1383fd6526b1c0  0002-editor-Fix-discarding-of-addrs-for-cmds-expecting-a-.patch
"
